﻿using System;

namespace HobSoft.SoccerBet2014.Domain.Models.KeyHelper
{
    public class TournamentKeyGenerate : IModelKeyGenerate<Tournament>
    {
        public string Create(Tournament mod)
        {
            return Create(mod.BmID, mod.ID);
        }

        public string Create(params object[] args)
        {
            if (args.Length < 2)
                throw new ArgumentException("need args 2");
            return string.Format("{0}-{1}", args);
        }
    }
}
